<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:doc="livcos.org/ns/doc"
	xmlns:pm="livcos.org/ns/pm"
	xmlns:f="livcos.org/ns/xslt/function"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:v="livcos.org/ns/view"
	exclude-result-prefixes="doc pm f xs v">
	
	<xsl:import href="/livcos.org/common/base.xsl"/>
	
	<xsl:template match="pm:application">
		<v:chapter id="{@id}">
			<v:title><xsl:value-of select="pm:title"/></v:title>
			<xsl:apply-templates select="* except pm:title"/>
		</v:chapter>
	</xsl:template>
	
	<xsl:template match="pm:release">
		<v:chapter id="{@id}">
			<v:title>Release <xsl:value-of select="@num"/><xsl:text> </xsl:text><xsl:value-of select="@label"/></v:title>
			<xsl:apply-templates select="*"/>
		</v:chapter>
	</xsl:template>
	
	<xsl:template match="pm:feature">
		<v:chapter id="{@id}">
			<v:title><xsl:value-of select="pm:title"/></v:title>
			<xsl:apply-templates select="* except pm:title"/>
		</v:chapter>
	</xsl:template>
	
</xsl:stylesheet>
